package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 金华市教育同步导入批次表
 *
 * @author zhiyuan
 * @since 2024-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_sync_jh_import_batch")
@Schema(name = "EduSyncJhImportBatch", title = "金华市教育同步导入批次表", description = "金华市教育同步导入批次表实体类")
public class EduSyncJhImportBatch extends Model<EduSyncJhImportBatch> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "importBatchId", description = "导入批次id")
    @TableId(value = "import_batch_id", type = IdType.ASSIGN_ID)
    private Long importBatchId;

    @Schema(name = "importBatchName", description = "导入批次名")
    @TableField(value = "import_batch_name")
    private String importBatchName;

    @Schema(name = "year", description = "导入年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "importType", description = "导入类型 1 报名导入 2审核导入 3录取导入")
    @TableField(value = "import_type")
    private String importType;

    @Schema(name = "areaCode", description = "导入人行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "del", description = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.importBatchId;
    }
}
